package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;
import com.lagou.pojo.MappedStatement;

import java.util.List;

/**
 * @author lyj
 * @Title: Executor
 * @ProjectName lagou_project
 * @Description: TODO
 * @date 2020/5/28 22:00
 */

public interface Executor {
    public <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

    //增加单个
    public int insertOne(Configuration configuration, MappedStatement mappedStatement, Object... params)throws Exception;

    int deleteOne(Configuration configuration, MappedStatement mappedStatement, Object[] params)throws Exception;

    int updateOne(Configuration configuration, MappedStatement mappedStatement, Object[] params)throws Exception;
}
